package violin.resources;

import violin.resources.models.User;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

@Path("user/{id}")
public class UserResource {
    @GET
    public User load(@PathParam("{id}") Long id) {
        User user = new User(id, "id" + id);
        user.setEmail("user@company.com");
        return user;
    }
    
    @POST
    public boolean create(User user) {
        user.setEmail("user@company.com");
        return true;
    }


}
